package com.loan.vo;

import com.loan.entity.Contract;
import com.loan.group.ContractArrayGroup;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @ClassName: ContractArray
 * @Author: wYin
 * @Date: 2022/1/22 15:23
 */
@Data
public class ContractArray {
//    @NotNull(message = "传入的合同组不能为空",groups = {ContractArrayGroup.class})
//    @Valid
//    private List<Contract> contracts;
    @NotNull(message = "传入的合同组不能为空",groups = {ContractArrayGroup.class})
    private Integer empId;
    @NotBlank(message = "传入的合同组不能为空",groups = {ContractArrayGroup.class})
    private String number;
}
